<!-- src/App.vue -->
<script setup lang="ts">
    import { useRouter } from 'vue-router'
    const router = useRouter()
    function go() {
        console.info("go");
        router.push('/solutions');
    }
	
	function camera() {
        router.push('/camera');
    }
</script>

<template>
    <!-- 仅在此处声明一次 router-view -->
    <router-view />

      <!-- 全局显示的内容（可选） -->
  <div v-if="$route.path === '/'">
    <h1>Welcome to use the tool. Good luck!</h1>
    <button @click="go">Go!</button>
	<button @click="camera">Camera!</button>
  </div>
</template>